#include"SeqList.h"
void test()
{
	SeqList s;
	SeqListInit(&s);
	SeqListPushBack(&s, 1);
	SeqListPushBack(&s, 2);
	SeqListPushBack(&s, 3);
	SeqListPushBack(&s, 4);
	SeqListPushBack(&s, 5);
	SeqListPushBack(&s, 6);
	SeqListPushBack(&s, 7);
	SLPrint(&s);

	SeqListPushFront(&s, 8);
	SeqListPushFront(&s, 9);
	SeqListPushFront(&s, 10);
	SLPrint(&s);


	SeqListPopBack(&s);
	SeqListPopBack(&s);
	SeqListPopBack(&s);
	SLPrint(&s);



	SeqListPopFront(&s);
	SeqListPopFront(&s);
	SeqListPopFront(&s);
	SLPrint(&s);

}
void test1()
{
	SeqList s;
	SeqListInit(&s);
	SeqListPushBack(&s, 1);
	SeqListPushBack(&s, 2);
	SeqListPushBack(&s, 3);
	SeqListPushBack(&s, 5);
	SeqListPushBack(&s, 6);
	SeqListPushBack(&s, 7);
	SeqListPushBack(&s, 8);
	SLPrint(&s);
	int ret = SeqListFind(&s, 5);
	printf("%d\n", ret);
	SeqListInsert(&s, 10, 4);
	SLPrint(&s);
	SeqListErase(&s, 5);
	SLPrint(&s);
}
int main()
{
	test1();
	return 0;
}